/* Estilo geral do corpo */
body {
    font-family: Arial, sans-serif;
    background-image: linear-gradient(to right, rgb(20, 147, 220), rgb(17, 54, 71));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* Estilo para o contêiner principal */
.box {
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    margin: 20px;
}

/* Estilo do formulário */
form {
    padding: 20px;
}

/* Estilo da legenda */
legend {
    text-align: center;
}

/* Estilo do upload de imagem */
.picture {
    display: block;
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed white;
    border-radius: 50%;
    margin: 0 auto 20px;
    cursor: pointer;
    overflow: hidden;
    /* Certifica-se de que a imagem fique dentro do círculo */
}

.picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Garante que a imagem cubra todo o círculo */
    border-radius: 50%;
    /* Mantém a imagem redonda */
}

.picture__image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
}

#picture__input {
    display: none;
}

.upload-button {
    display: block;
    width: 100%;
    text-align: center;
    color: rgb(236, 239, 241);
    cursor: pointer;
    transition: color 0.3s;
}

.upload-button:hover {
    color: white;
}

/* Estilo das labels */
label {
    color: white;
    font-size: 16px;
}

/* Estilo das caixas de input */
.inputBox {
    position: relative;
    margin-bottom: 30px;
}

/* Estilo dos inputs do usuário */
.inputUser {
    background: none;
    border: none;
    border-bottom: 1px solid white;
    outline: none;
    color: white;
    font-size: 15px;
    width: 100%;
    padding: 8px 0;
}

/* Estilo das labels dos inputs */
.labelInput {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 0;
    pointer-events: none;
    transition: 0.5s;
    color: white;
    font-size: 15px;
}

/* Transição da label quando o input está focado ou preenchido */
.inputUser:focus~.labelInput,
.inputUser:valid~.labelInput {
    top: -20px;
    left: 0;
    color: rgb(244, 246, 248);
    font-size: 12px;
}

/* Estilo do botão de envio */
input[type="submit"] {
    background-image: linear-gradient(to right, rgb(239, 243, 247), rgb(90, 20, 220));
    width: 50%;
    border: none;
    padding: 15px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background-image 0.3s;
}

input[type="submit"]:hover {
    background-image: linear-gradient(to right, rgb(0, 80, 172), rgb(80, 19, 195));
}

/* Estilo dos botões */
button {
    background: none;
    border: none;
    color: rgb(253, 248, 248);
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Estilo dos botões */
.pet-register-btn {
    background-image: linear-gradient(to right, rgb(197, 46, 0), rgb(90, 20, 220));
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 15px;
    margin: 10px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-image 0.3s;
    animation: bounce 2s infinite;
    display: inline-block;
    max-width: 200px;
}

/* Estilo do link dentro do botão */
.pet-register-btn a {
    text-decoration: none;
    color: white;
}

.no-underline {
    text-decoration: none;
}

/* Estilo de hover */
.pet-register-btn:hover {
    background-image: linear-gradient(to right, rgb(0, 80, 172), rgb(80, 19, 195));
}

/* Animação de pulo */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Estilo do formulário para alinhar os botões */
#tutorForm {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 600px) {
    .box {
        width: 90%;
        margin: 20px auto;
        padding: 10px;
    }

    .picture {
        width: 150px;
        height: 150px;
    }

    .inputUser {
        font-size: 14px;
    }

    .labelInput {
        font-size: 14px;
    }

    input[type="submit"],
    .pet-register-btn {
        padding: 10px;
        font-size: 14px;
    }
}